import request from '@/utils/request'

// 查询预警分段信息列表
export function listWarnSectionInfo(query) {
    return request({
        url: '/monitor/warnSectionInfo/list',
        method: 'get',
        params: query
    })
}

// 查询预警分段信息详细
export function getWarnSectionInfo(id) {
    return request({
        url: '/monitor/warnSectionInfo/' + id,
        method: 'get'
    })
}

// 新增预警分段信息
export function addWarnSectionInfo(data) {
    return request({
        url: '/monitor/warnSectionInfo',
        method: 'post',
        data: data
    })
}

// 修改预警分段信息
export function updateWarnSectionInfo(data) {
    return request({
        url: '/monitor/warnSectionInfo',
        method: 'put',
        data: data
    })
}

// 删除预警分段信息
export function delWarnSectionInfo(id) {
    return request({
        url: '/monitor/warnSectionInfo/' + id,
        method: 'delete'
    })
}
